package com.ldx.function;

import java.util.function.Predicate;

/**
 * @author lidexin
 * @create 2021-10-16 17:48
 */
public class Demo02 {
    public static void main(String[] args) {
//         Predicate<String> predicate = new Predicate<String>() {
//             @Override
//             public boolean test(String s) {
//                 return s.isEmpty();
//             }
//         };

         Predicate<String> predicate = str -> {return str.isEmpty();};
        System.out.println(predicate.test(""));
    }
}
